package com.day0921;

public class Text {
    public static void main(String[] args) {
//        Student student = new Student();
//        student.student_age = 18;
//        student.student_name = "张三";
//        student.student_no = "1001";
//        student.show();
//        Student student1 = new Student();
//        student1.show();
        //this 类当中使用   当前对象的引用
//        方法中有隐藏参数
        Dog dog = new Dog();
        String name = "狗狗";
        int age = 3;
        Dog dog1 = new Dog(name,age);
        Dog dog2 = new Dog("狗狗",3);

        int[] num = new int[]{11,12,13};
        Dog dog3 = new Dog("花花",5);//对象的声明并赋值，与数组和变量不一样的是需要自己写构造方法


    }
}
